package cn.itcast.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;


@ContentRowHeight(16)  //数据行高数
@HeadRowHeight(25)     //表头高度
@ColumnWidth(10)       //列宽
public class InvoiceVo implements Serializable {


    @ExcelProperty("Marks and Nos")
    @ColumnWidth(17)
    private String marks;

    @ExcelProperty("Descriptions")
    @ColumnWidth(21)
    private String descriptions;

    @ExcelProperty("Quantity")
    private double quantity;

    @ExcelProperty("Unit")
    private double unit;

    @ExcelProperty("Amount")
    private double amount;

    @ExcelProperty("psc")
    private String psc;

    public InvoiceVo() {
    }

    public InvoiceVo(String marks, String descriptions, double quantity, double unit, double amount, String psc) {
        this.marks = marks;
        this.descriptions = descriptions;
        this.quantity = quantity;
        this.unit = unit;
        this.amount = amount;
        this.psc = psc;
    }

    public String getMarks() {
        return marks;
    }

    public void setMarks(String marks) {
        this.marks = marks;
    }

    public String getDescriptions() {
        return descriptions;
    }

    public void setDescriptions(String descriptions) {
        this.descriptions = descriptions;
    }

    public double getQuantity() {
        return quantity;
    }

    public void setQuantity(double quantity) {
        this.quantity = quantity;
    }

    public Double getUnit() {
        return unit;
    }

    public void setUnit(Double unit) {
        this.unit = unit;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public String getPsc() {
        return psc;
    }

    public void setPsc(String psc) {
        this.psc = psc;
    }

    @Override
    public String toString() {
        return "InvoiceVo{" +
                "marks='" + marks + '\'' +
                ", descriptions='" + descriptions + '\'' +
                ", quantity=" + quantity +
                ", unit=" + unit +
                ", amount=" + amount +
                ", psc='" + psc + '\'' +
                '}';
    }
}
